package whitefox.gqtcard.dblocation;

public class Location {
	private String m_ID_Location;
	private String m_Name_Location;
	private String m_Note_Location;
	public double m_latitude;// latitude
	public double m_longitude;// longitude
	
	public Location(String m_ID_Location, String m_Name_Location,
			String m_Note_Location, double m_latitude, double m_longitude) {
		super();
		this.m_ID_Location = m_ID_Location;
		this.m_Name_Location = m_Name_Location;
		this.m_Note_Location = m_Note_Location;
		this.m_latitude = m_latitude;
		this.m_longitude = m_longitude;
	}

	public String getM_ID_Location() {
		return m_ID_Location;
	}

	public void setM_ID_Location(String m_ID_Location) {
		this.m_ID_Location = m_ID_Location;
	}

	public String getM_Name_Location() {
		return m_Name_Location;
	}

	public void setM_Name_Location(String m_Name_Location) {
		this.m_Name_Location = m_Name_Location;
	}

	public String getM_Note_Location() {
		return m_Note_Location;
	}

	public void setM_Note_Location(String m_Note_Location) {
		this.m_Note_Location = m_Note_Location;
	}

	public double getM_latitude() {
		return m_latitude;
	}

	public void setM_latitude(double m_latitude) {
		this.m_latitude = m_latitude;
	}

	public double getM_longitude() {
		return m_longitude;
	}

	public void setM_longitude(double m_longitude) {
		this.m_longitude = m_longitude;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((m_ID_Location == null) ? 0 : m_ID_Location.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Location other = (Location) obj;
		if (m_ID_Location == null) {
			if (other.m_ID_Location != null)
				return false;
		} else if (!m_ID_Location.equals(other.m_ID_Location))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "Location: " + m_Name_Location
				+ "\n" + m_Note_Location ;
	}
	

}
